package com.stox.client.ui.javafx.watchlist.application;

import com.stox.client.ui.core.application.AbstractApplication;
import com.stox.client.ui.javafx.watchlist.view.WatchlistView;
import com.stox.shared.core.i18n.MessageSource;

public class WatchlistApplication extends AbstractApplication{
	public static final WatchlistApplication INSTANCE = new WatchlistApplication();
	
	private WatchlistApplication() {

	}
	
	private WatchlistView watchlistView;
	
	@Override
	public String getName() {
		return MessageSource.get("Watchlists");
	}
	
	@Override
	public void show() {
		super.show();
		if(null == watchlistView){
			watchlistView = new WatchlistView();
		}
		watchlistView.open();
	}

	@Override
	public void hide() {
		super.hide();
		watchlistView.close();
	}
	
}
